In [1]:
import math
In [2]:
math.e
Out[2]:
In [3]:
n = int(input("Ingrese la cantidad de terminos a sumar: "))
In [5]:
sum = 0
fact = 1
for i in range(n):
sum += 1/fact
fact *= (i+1)
In [6]:
print(sum)
In [ ]:
In [ ]: